package com.yxjwzpx.management.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 故障上报对象 fault_report
 * 
 * @author yxjwzpx
 * @date 2025-04-09
 */
public class FaultReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障报告ID */
    private Long reportId;

    /** 船舶ID */
    @Excel(name = "船舶ID")
    private Long shipId;

    /** 故障类型ID */
    @Excel(name = "故障类型ID")
    private Long faultTypeId;

    /** 报告人用户ID */
    @Excel(name = "报告人用户ID")
    private Long userId;

    /** 故障上报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障上报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;

    /** 故障详情描述 */
    @Excel(name = "故障详情描述")
    private String faultDescription;

    /** 故障处理状态（0=已上报/待处理，1=已指派维保计划，2=维修中，3=已修复/已完成） */
    @Excel(name = "故障处理状态", readConverterExp = "0==已上报/待处理，1=已指派维保计划，2=维修中，3=已修复/已完成")
    private String status;

    /** 故障解决时间（当status达到完成时记录） */
    @Excel(name = "故障解决时间", readConverterExp = "当=status达到完成时记录")
    private Date resolvedTime;

    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }

    public void setShipId(Long shipId) 
    {
        this.shipId = shipId;
    }

    public Long getShipId() 
    {
        return shipId;
    }

    public void setFaultTypeId(Long faultTypeId) 
    {
        this.faultTypeId = faultTypeId;
    }

    public Long getFaultTypeId() 
    {
        return faultTypeId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setReportTime(Date reportTime) 
    {
        this.reportTime = reportTime;
    }

    public Date getReportTime() 
    {
        return reportTime;
    }

    public void setFaultDescription(String faultDescription) 
    {
        this.faultDescription = faultDescription;
    }

    public String getFaultDescription() 
    {
        return faultDescription;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setResolvedTime(Date resolvedTime) 
    {
        this.resolvedTime = resolvedTime;
    }

    public Date getResolvedTime() 
    {
        return resolvedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("reportId", getReportId())
            .append("shipId", getShipId())
            .append("faultTypeId", getFaultTypeId())
            .append("userId", getUserId())
            .append("reportTime", getReportTime())
            .append("faultDescription", getFaultDescription())
            .append("status", getStatus())
            .append("resolvedTime", getResolvedTime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
